cmake_minimum_required(VERSION 3.12)
project(windetect LANGUAGES C CXX)

set(CMAKE_CXX_STANDARD 14)

find_package(X11 REQUIRED)

add_executable(${PROJECT_NAME} main.cpp)

target_link_libraries(${PROJECT_NAME} PRIVATE ${X11_LIBRARIES})
target_include_directories(${PROJECT_NAME} PRIVATE ${X11_INCLUDE_DIR})
